<template>
  <el-button @click="handleClick">点我弹出确认框 </el-button>
</template>

<script>
export default {
  name: "ConfirmBoxTest",
  methods: {
    handleClick() {
      this.$confirmBox({
        title: "提示",
        msg: "是否确定退出"
      }).then(res => {
        console.log("处理点击确定后的逻辑")
      }).catch(err => {
        console.log("处理点击取消后的逻辑");
      })
    }
  }
}
</script>

<style scoped>

</style>